package com.oa.gform.client.ui;

import com.google.gwt.user.client.ui.HTML;
/***
 * Implementazione della label di una field
 * @author Marco
 *
 */
public class GFieldLabel extends HTML {
	private static String style = "GForm-FieldLabel";
	private static String styleInError = "GForm-FieldLabel-InError";
	String forGField;
	//GField<?> gField;

	/***
	 * Costruttore di default
	 */
	public GFieldLabel() {
		super();
		this.addStyleName(style);
	}

	public void setInError(boolean inError) {
		if (inError) {
			this.addStyleName(styleInError);
		} else {
			this.removeStyleName(styleInError);
		}
	}
	
}
